import request from "../utils/index"
//获取所有用户列表
export function getShop(data?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Ayt/getShop',
        data
    })
}

// getUser
export function getUser(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/getUser',
        data
    })
}
// getGuanzhu 关注
export function getGuanzhu(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/getGuanzhu',
        data
    })
}
// touxiang 个人详情
export function touxiang(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/touxiang',
        data
    })
}

//  userSet 修个个人信息
export function userSet(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/userSet',
        data
    })
}

// 登录手机短信
export function loginYzm(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/loginYzm',
        data
    })
}
// Shoujiyzm 手机验证码登录
export function Shoujiyzm(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/Shoujiyzm',
        data
    })
}
// setLogin  手机注册
export function setLogin(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/setLogin',
        data
    })
}
// setYzm
export function setYzm(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/setYzm',
        data
    })
}
// 修改 xiugai
export function xiugai(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/xiugai',
        data
    })
}
// 重置密码 chongzhi
export function chongzhi(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/chongzhi',
        data
    })
}
// 
// 重置密码 获取我的页面数据
export function getmyDate(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/getmyDate',
        data
    })
}
//关注flow
export function flow(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/flow',
        data
    })
}
// 喜欢 getWork
export function getWork(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/getWork',
        data
    })
}
// 关注列表搜索 search
export function search(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/search',
        data
    })
}

// 头像
export function postData(data?: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/postImg',
        data
    })
}
export function getData(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Ayt/getImg',
        params
    })
}


export function uploadFile(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/uploadFile',
        data
    })
}


// zujiDelete
export function zujiDelete(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/zujiDelete',
        data
    })
}

// setMyuser
export function setMyuser(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/setMyuser',
        data
    })
}

// setCaogao
export function setCaogao(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/setCaogao',
        data
    })
}

// fensiFlow
export function fensiFlow(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/fensiFlow',
        data
    })
}
//caoGaoDelete
export function caoGaoDelete(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/caoGaoDelete',
        data
    })
}
// uploadFileImgQiang
export function uploadFileImgQiang(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/uploadFileImgQiang',
        data
    })
}
// getMyfensi 
export function getMyfensi(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/getMyfensi',
        data
    })
}

// fenshi获取后台详情
export function fenshi(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/fenshi',
        data
    })
}
// 作品后台详情 zuping.
export function zuping(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/zuping',
        data
    })
}





































// 后台 setUser
export function setUser(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/setUser',
        data
    })
}

// 后台删除 deleteUser
export function deleteUser(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/deleteUser',
        data
    })
}
// switchNum 修改状态
export function switchNum(data: any) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/Ayt/switchNum',
        data
    })
}